<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
            <!--[if lt IE 8]>
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
            <![endif]-->
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery-ui-1.10.3.custom.min.css" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-min.css" />
            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-responsive.css" />

            <?php
            Yii::app()->clientScript
                    ->registerScriptFile(Yii::app()->baseUrl . '/js/jquery-ui-1.10.3.custom.min.js')
                    ->registerScriptFile(Yii::app()->baseUrl . '/js/bootstrap.min.js')
            ?>
            <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

    <body>

        <div class="container" id="page">

            <div id="header " class="container">
                <div class="logo span2 pull-left container">
                    <a href='<?php echo Yii::app()->createUrl('site/index') ?>' >
                        <img src="/images/logoscoutSmall.png"/>
                    </a>
                </div>
                <div class="banner span9 container">
                    <div id="myCarousel" class="carousel slide">
                        <ol class="carousel-indicators">
                            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
                            <li data-target="#myCarousel" data-slide-to="1"></li>
                            <li data-target="#myCarousel" data-slide-to="2"></li>
                            <li data-target="#myCarousel" data-slide-to="3"></li>
                        </ol>
                        <!-- Carousel items -->
                        <div class="carousel-inner">
                            <div class="active item">
                                <img alt="" src="/images/1.jpg">
                                    <div class="carousel-caption">

                                        <h4><?php echo Yii::t('content', 'Algarve. As melhores praias.') ?></h4>
                                        <p><?php echo Yii::t('content', 'As melhores praias da Europa encontram-se no sul de Portugal. Descubra a sua beleza natural,de águas calmas, quentes e despoluídas.') ?></p>
                                    </div>

                            </div>
                            <div class="item">
                                <img alt="" src="/images/2.jpg">
                                    <div class="carousel-caption">

                                        <h4><?php echo Yii::t('content', 'Portugal gastronómico.') ?></h4>
                                        <p><?php echo Yii::t('content', 'Portugal tem um rico património gastronómico,feito do saber acumulado ao longo de gerações, utilizando os produtos naturais criados nesta terra maravilhosa.') ?></p>
                                    </div>

                            </div>
                            <div class="item">
                                <img alt="" src="/images/3.jpg">
                                    <div class="carousel-caption">

                                        <h4><?php echo Yii::t('content', 'Produtos caseiros') ?></h4>
                                        <p><?php echo Yii::t('content', 'Os nossos produtos caseiros, são o que de melhor e mais natural se produz em Portugal. Encontre aqui o que procura ') ?></p>
                                    </div>

                            </div>
                            <div class="item">
                                <img alt="" src="/images/4.jpg">
                                    <div class="carousel-caption">
                                        <h4><?php echo Yii::t('content', 'Oportunidades de negócio') ?></h4>
                                        <p><?php echo Yii::t('content', 'Recursos naturais, turismo e oportunidades de negócio ao seu encontro.Invista em Portugal.') ?>
                                    </div>

                            </div>
                        </div>
                        <!-- Carousel nav -->
                        <a class="carousel-control left" href="#myCarousel" data-slide="prev">&lsaquo;</a>
                        <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a>
                    </div>
                </div>


            </div><!-- header -->
            <div class="navbar container">
                <div class="navbar-inner">
                    <div class="container">
                        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </a>
                        <a class="brand" href="<?php echo Yii::app()->createUrl('site/index') ?>"><i class="icon-home"></i></a>
                        <div class="nav-collapse collapse">
                            <ul class="nav">

                                <li><a href="<?php echo Yii::app()->createUrl('site/contact'); ?>"><?php echo Yii::t('content', 'Contactos') ?></a></li>
                                <li><a href="<?php echo Yii::app()->createUrl('site/about'); ?>"><?php echo Yii::t('content', 'Quem Somos') ?></a></li>
                                <li><a href="<?php echo Yii::app()->createUrl('site/work'); ?>"><?php echo Yii::t('i18n', 'Quer trabalhar connosco?') ?></a></li>
                                <?php if (!Yii::app()->user->isGuest): ?>
                                    <li><a href="<?php echo Yii::app()->createUrl('site/logout'); ?>" >Logout</a></li>  
                                <?php else : ?>
                                    <li><a href="<?php echo Yii::app()->createUrl('site/login'); ?>" >Login</a></li>  
                                <?php endif; ?>
                            </ul>  
                            <div class="right container">

                                <?php
                                $this->widget('ext.ELangPick', array(
                                    //'pickerType' => 'dropdown',
                                    'excludeFromList' => array('en_us')));
                                ?>
                            </div> 

                        </div> 

                    </div>
                </div>
            </div>
            <?php if (isset($this->breadcrumbs)): ?>
                <?php
                $this->widget('zii.widgets.CBreadcrumbs', array(
                    'links' => $this->breadcrumbs,
                ));
                ?><!-- breadcrumbs -->
            <?php endif ?>

            <?php echo $content; ?>

            <div class="clear"></div>

            <div id="footer">
                Copyright &copy; <?php echo date('Y'); ?> by Portugal Scout.<br/>
                All Rights Reserved.<br/>

            </div><!-- footer -->

        </div><!-- page -->
        <script>
            $(document).ready(function() {
                $('.dtpk').datepicker({ dateFormat: 'yy-mm-dd' });
            });
        </script>
        <script type="text/javascript">
    /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
    var disqus_shortname = 'wled'; // required: replace example with your forum shortname

    /* * * DON'T EDIT BELOW THIS LINE * * */
    (function () {
        var s = document.createElement('script'); s.async = true;
        s.type = 'text/javascript';
        s.src = '//' + disqus_shortname + '.disqus.com/count.js';
        (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
    }());
    </script>
    
    </body>
</html>
